<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="./axios.min.js"></script>
</head>
<body>
	<button>get</button>
	<button>post</button>
</body>
<script type="module">
	import axios from "./myAxios.js";
	axios.defaults.baseURL = "http://zhangpeiyue.com:3000"
	const btns = document.querySelectorAll("button");
	btns[0].onclick = async function(){
		// 1
		// const result = axios({
		// 	url:"/scoreList"
		// });
		// console.log(result);
		
		// 2
		axios("http://zhangpeiyue.com:3000/scoreList")
	}
</script>
</html>